package org.ns.summer.mvc.anns;

import org.ns.summer.beans.anns.Component;
import org.ns.summer.core.anns.AliasFor;
import org.ns.summer.mvc.mappinghandler.RequestMethod;

import java.lang.annotation.*;


@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.METHOD})
@Inherited
@Documented
public @interface RequestMapping {

    @AliasFor(attribute = "path")
    String value() default  "";

    @AliasFor(attribute = "value")
    String path() default "";

    RequestMethod[] method() default {};

}
